Transcription: Light hitting atoms in the p-type layer frees electrons. These electrons are attracted to the n-type layer. Electrons from deeper in the p-type layer replace those which are lost. As more light rays hit the cell, electrons flow around a circuit as an electric current before returning to the bottom of the p-type layer. you